from common import *

import pylab

def Collect4RowBlocksFunc(in0,in1,in2,in3,out0):
    while True:
        #Collect
        block0 = in0()
        block1 = in1()
        block2 = in2()
        block3 = in3()
        
        #Assemble
        result = pylab.concatenate((block0[1:-1], block1[1:-1], block2[1:-1], block3[1:-1]))

        out0(result)

